package com.pcitc.app.webapp.action;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import com.pcitc.app.dao.OperatorDAO;
import com.pcitc.app.model.BaseObject;
import com.pcitc.app.model.Operator;
public class TblUser extends BaseObject{
	private int userid;
	private int orgid;
	private String usercode;
	private String pwd;
	private String username;
	private String tel;
	private String mail;
	private String address;
	private String auditresult;

	/**
     * {@inheritDoc}
     */
    public boolean equals(TblUser o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof TblUser)) {
            return false;
        }

        final TblUser tbluser = (TblUser) o;

        return !(username != null ? !username.equals(tbluser.username) : tbluser.username != null);

    }

    /**
     * {@inheritDoc}
     */
    public int hashCode() {
        return (username != null ? username.hashCode() : 0);
    }

    /**
     * {@inheritDoc}
     */
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.SIMPLE_STYLE)
                .append(this.username)
                .toString();
    }

    public int compareTo(Object o) {
        return (equals(o) ? 0 : -1);
    }

}
